<template>
	<div class="tra-shu-xue-sheng-qing-edit">
		<!-- 按钮栏 -->
		<BaseBillButtonGroup @gotoList="gotoList" @save="saveBill" @add="newEntity" />
		<!-- 单据信息 -->
		<div class="edit-container">
			<div class="edit-main">
				<MkPatientForm ref="mkPatientFormRef" />
			</div>
			<div class="dividebox" ref="divideRef1" v-resize="['.edit-main', '.edit-middle']"></div>
			<div class="edit-middle">
				<MkCardForm title="复核信息">
					<MkInput v-model="ctx.master.biaoBenHao" prop="code" label="标本号" :isEdit="ctx.isEdit" />
					<MkSelectEnum label="ABO复核结果" v-model="ctx.master.aboFuHeJieGuo" prop='aboFuHeJieGuo'
						:isEdit="ctx.isEdit" enumType="aboFuHeJieGuo" />
					<MkSelectEnum label="Rh(D)复核结果" v-model="ctx.master.rhdFuHeJieGuo" prop='rhdFuHeJieGuo'
						:isEdit="ctx.isEdit" enumType="rhdFuHeJieGuo" />
					<MkInput v-model="ctx.master.aboJianDing" prop="aboFangFa" label="ABO鉴定方法" :isEdit="ctx.isEdit" />
					<MkInput v-model="ctx.master.rhdJianDing" prop="rhdFangFa" label="Rh(D)鉴定方法" :isEdit="ctx.isEdit" />
					<MkSelectEnum label="抗筛结果" v-model="ctx.master.kangShaiJieGuo" prop='kangShaiJieGuo'
						:isEdit="ctx.isEdit" enumType="KangShaiJieGuo" />
					<MkInput v-model="ctx.master.jianYanRenID" prop="jianYanUser" label="检验人" :isEdit="ctx.isEdit" />
					<MkInput v-model="ctx.master.fuHeRenId" prop="fuHeUser" label="复核人" :isEdit="ctx.isEdit" />
					<MkDatePicker v-model="ctx.master.jianYanShiJian" prop="jianYanTime" label="检验时间"
						:isEdit="ctx.isEdit" />
				</MkCardForm>
			</div>
			<div class="dividebox" ref="divideRef2" v-resize="['.edit-middle', '.edit-right']"></div>
			<div class="edit-right">
				<edit-wait ref="editWaitRef" />
			</div>
		</div>
	</div>
</template>
<script lang="ts" setup>
// 输血申请模块--编辑
import editWait from "./editWait.vue";
defineOptions({
	name: 'traXueXingFuHeEdit',
});
const emit = defineEmits(['gotoList']);
defineExpose({ itemChange })
/**
 * 组件实例
 */
const editWaitRef = ref<InstanceType<typeof editWait>>();
const gotoList = () => {
	emit('gotoList');
};

import { ctx, mkPatientFormRef, newEntity, itemChange, saveBill } from './edit'



</script>
<style lang="scss" scoped>
@use './css/edit.scss';
</style>
